package com.data.tree;

import java.util.List;

/**
 * Create with Intellij IDEA.
 * Description：
 * User:Zero
 * Date:2021/5/12
 * Time:16:41
 */
public class Node {
    private String data;
    private int id;
    private int pid;
    private int level;
    private List<Node> children;

    public Node(String data, int id, int pid) {
        this.data = data;
        this.id = id;
        this.pid = pid;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public List<Node> getChildren() {
        return children;
    }

    public void setChildren(List<Node> children) {
        this.children = children;
    }
}
